<?php
namespace app\common\model;

use think\Session;
use think\Model;

class Reserved extends Model
{

	protected function setContentAttr($value)
	{
		return htmlspecialchars_decode($value);
	}

	/**
	 * 序列化photo图集
	 * @param $value
	 * @return string
	 */
	protected function setPhotoAttr($value)
	{
	    return serialize($value);
	}

	/**
	 * 反序列化photo图集
	 * @param $value
	 * @return mixed
	 */
	protected function getPhotoAttr($value)
	{
	    return unserialize($value);
	}
	
}